home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 75
/
PCMania CD75_1.iso
/
hotme5
/
data1.cab
/
Assets_-_hmfxrules_-_core
/
Assets
/
Hmfx
/
Rules
/
rules0001
/
fxitems.xml
< prev
Wrap
Extensible Markup Language
|
1998-11-03
|
5KB
|
143 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Horizontal Rule" ID="%Filename%">
<Icon SRC="%Filename%"/>
<Description>%ASK:Description:%--------------------</Description>
<Filename SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, dest, attr;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\rules\\%Filename%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
}
else
{
dst = ActiveDocument.Path + "\\images\\rules\\%Filename%";
attr = "images/rules/%Filename%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c03.gif">
<Icon SRC="d13c03.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c03.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c02.gif">
<Icon SRC="d13c02.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c02.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c01.gif">
<Icon SRC="d13c01.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c01.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c04.gif">
<Icon SRC="d13c04.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c04.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c05.gif">
<Icon SRC="d13c05.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c05.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c06.gif">
<Icon SRC="d13c06.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c06.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c07.gif">
<Icon SRC="d13c07.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c07.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c08.gif">
<Icon SRC="d13c08.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c08.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c09.gif">
<Icon SRC="d13c09.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c09.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c10.gif">
<Icon SRC="d13c10.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c10.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c11.gif">
<Icon SRC="d13c11.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c11.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c12.gif">
<Icon SRC="d13c12.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c12.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c13.gif">
<Icon SRC="d13c13.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c13.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c14.gif">
<Icon SRC="d13c14.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c14.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c15.gif">
<Icon SRC="d13c15.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c15.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c16.gif">
<Icon SRC="d13c16.gif"/>
<Description>-------------------</Description>
<Filename SRC="d13c16.gif"/>
</Item>
<Item Type="File" CLASS="Horizontal Rule" ID="d13c17.gif">
<Icon SRC="d13c17.gif"/>
<Description>--------------------</Description>
<Filename SRC="d13c17.gif"/>
</Item>
</Items>